package org.ecloud.common.constants;

public enum Status {

	SUCCESS(200, "成功")
	,UNVALIABLE_SERVICE(50001, "服务不可用")
	,INVALID_REQUEST(60001, "非法请求")
	,INVALID_TOKEN(60002, "非法Token")
	,INVALID_IDCARD(60101, "非法身份证号码")
	,INVALID_BIRTHDAY(60102, "非法出生年月日")
	,FAILURE_API_FINDALL(60201, "获取API列表失败")
	,FAILURE_API_QUERY(60202, "分页获取API列表失败")
	,FAILURE_SECRET_FINDALL(60301, "获取密钥列表失败")
	,FAILURE_SECRET_QUERY(60302, "分页获取密钥列表失败")
	;
	
	private Status(int code, String text){
		this.code = code;
		this.text = text;
	}
	
	private int code;
	private String text;
	
	public int code() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String text() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	
}
